package cn.lopr.im.android.mvp.contact;

import java.util.List;

import cn.lopr.im.android.bean.CallbackResult;
import cn.lopr.im.android.bean.User;
import cn.lopr.im.android.common.OnCallBackListener;
import cn.lopr.im.android.common.ViewBase;
import cn.lopr.im.android.db.entity.Message;

/**
 * @author shuangyang7
 * @date 2021/5/20 20:04
 */
public interface IAddFriendContact {

    interface IAddFriendPresenter {
        void searchFriend();

        void addFriend(String phone);

        void getAddFriendApply();

        void sendMessage(String toUserPhone);
    }

    interface IAddFriendView extends ViewBase {
        void searchFriendSuccess(List<User> users);

        void addFriendSuccess(String msg);

        void getAddFriendApplySuccess(List<Message> messages);

        String getSearchContent();

    }

    interface IAddFriendModel {
        void searchFriend(String token, String content, OnCallBackListener<CallbackResult<List<User>>, String> onCallBackListener);

        void getFriendByPhones(String token, List<String> users, OnCallBackListener<CallbackResult<List<User>>, String> onCallBackListener);

        void addFriend(String token, String content, OnCallBackListener<CallbackResult<List<User>>, String> onAddFriendResultListener);
    }
}
